<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>在一个声明的所有字体属性</title>
    <style>
        p.ex1 {
            font: 15px arial, sans-serif;
        }

        p.ex2 {
            font: italic bold 12px/30px Georgia, serif;
        }
    </style>
</head>

<body>
    <p class="ex1">This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a
        paragraph. This is a paragraph. This is a paragraph. This is a paragraph.</p>
    <p class="ex2">This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a
        paragraph. This is a paragraph. This is a paragraph. This is a paragraph.</p>
</body>

</html>